<template>
  <div class="home_container">
    <itemcontainer fatherComponent="home"></itemcontainer>
  </div>
</template>

<script>
import itemcontainer from '@/components/itemcontainer'
import {mapState,mapActions} from 'vuex'
export default {
  name:'home',
  components:{
    itemcontainer
  },
  data(){
    return{
      time:0
    }
  },
  mounted(){
    this.initHome()
  },
  computed:{
    ...mapState({
      timer:(state)=>state.allTime,
      level:state=>state.level
    })
  },
  methods:{
    //记时
    initHome(){
    }
  }
}
</script>

<style lang="less">
</style>